<template>
  <div class="login">
    <van-nav-bar
      title="标题"
      left-text="返回"
      right-text="按钮"
      left-arrow
      @click-left="onClickLeft"
      @click-right="onClickRight"
    />

    <!--  登录表单  点击登录按钮的时候，会触发submit事件  --><van-form>
       <van-field
        v-model="mobile"
        label="手机号"
        placeholder="请输入你的手机号"
      />
       <van-field v-model="code" label="验证码" placeholder="请输入验证码" />  
      <div style="margin: 16px">
           <van-button round block type="info" native-type="submit">
              登录    </van-button
        >
         
      </div></van-form
    >
  </div>
</template>

<script>
export default {}
</script>

<style></style>
